var foo = /\\./
var foo = /\\//g
var foo = /''/
var foo = /([A-Z])\\t+/g
var foo = /([A-Z])\\n+/g
var foo = /([A-Z])\\v+/g
var foo = /\\D/
var foo = /\\W/
var foo = /\\w/
var foo = /\\B/
var foo = /\\\\/g
var foo = /\\w\\$\\*\\./
var foo = /\\^\\+\\./
var foo = /\\|\\}\\{\\./
var foo = '\\n';
var foo = 'foo \\r bar';
var foo = '\\v';
var foo = '\\f';
var foo = '\\\n';
var foo = '\\\r\n';
var foo = `\\x123`
var foo = `\\u00a9`
var foo = `xs\\u2111`
var foo = `foo \\\\ bar`;
var foo = `\\t`;
var foo = `foo \\b bar`;
var foo = `\\n`;
var foo = `foo \\r bar`;
var foo = `\\v`;
var foo = `\\f`;
var foo = `\\\n`;
var foo = `\\\r\n`;
var foo = `${foo} \\x123`
var foo = `${foo} \\u00a9`
var foo = `${foo} xs\\u2111`
var foo = `${foo} \\\\ ${bar}`;
var foo = `${foo} \\b ${bar}`;
var foo = `${foo}\\t`;
var foo = `${foo}\\n`;
var foo = `${foo}\\r`;
var foo = `${foo}\\v`;
var foo = `${foo}\\f`;
var foo = `${foo}\\\n`;
var foo = `${foo}\\\r\n`;
var foo = /[\d]/
var foo = /[a\-b]/
var foo = /foo\?/
var foo = /example\.com/
var foo = /foo\|bar/
var foo = /\^bar/
var foo = /[\^bar]/
var foo = /\(bar\)/
var foo = /[[\]]/
var foo = /[[]\./
var foo = /[\]\]]/
var foo = /\[abc]/
var foo = /\[foo\.bar]/
var foo = /\B/
var foo = /\0/
var foo = /\\1/
var foo = /(a)\\1/
var foo = /(a)\\12/
var foo = /[\\0]/
var foo = 'foo \\\u2028 bar'
var foo = 'foo \\\u2029 bar'
var foo = /foo\]/
var foo = /[[]\]/
var foo = /\[foo\.bar\]/
var foo = /(?<a>)\k<a>/
var foo = /(\\?<a>)/
var foo = /\p{ASCII}/u
var foo = /\P{ASCII}/u
var foo = /[\p{ASCII}]/u
var foo = /[\P{ASCII}]/u
"\"";
'\'';
"\x12";
"\u00a9";
"\371";
"xs\u2111";
`\``;
`\${${foo}}`;
`$\{${foo}}`;
/\\/g;
/\t/g;
/\w\$\*\^\./;
/[[]/;
/[\]]/;
/[a-z-]/;

// 以下案例单独遍历测试
var foo = /\"\"/
var foo = /]\\[\\(\\)\\//
var foo = \"\\x123\"
var foo = \"\\u00a9\"
var foo = \"\\377\"
var foo = \"\\\"\"
var foo = \"xs\\u2111\"
var foo = \"foo \\\\ bar\";
var foo = \"\\t\";
var foo = \"foo \\b bar\";

<foo attr=\"\\d\"/>
<div> Testing: \\ </div>
<div> Testing: &#x5C </div>
<foo attr='\\d'></foo>
<> Testing: \\ </>
<> Testing: &#x5C </>

var foo = `\\``
var foo = `\\`${foo}\\``
var foo = `\\${{${foo}`;
var foo = `$\\{{${foo}`;
var foo = String.raw`\\.`
var foo = myFunc`\\.`

/]/
/\]/
/\]/u

/[^^]/
/[^^]/u

/[\q{abc}]/v
  /[\(]/v
  /[\)]/v
  /[\{]/v
  /[\]]/v
  /[\}]/v
  /[\/]/v
  /[\-]/v
  /[\|]/v
  /[\$$]/v
  /[\&&]/v
  /[\!!]/v
  /[\##]/v
  /[\%%]/v
  /[\**]/v
  /[\++]/v
  /[\,,]/v
  /[\..]/v
  /[\::]/v
  /[\;;]/v
  /[\<<]/v
  /[\==]/v
  /[\>>]/v
  /[\??]/v
  /[\@@]/v
  /[\\``]/v
  /[\~~]/v
  /[^\^^]/v
  /[_\^^]/v
  /[$\$]/v
  /[&\&]/v
  /[!\!]/v
  /[#\#]/v
  /[%\%]/v
  /[*\*]/v
  /[+\+]/v
  /[,\,]/v
  /[.\.]/v
  /[:\:]/v
  /[;\;]/v
  /[<\<]/v
  /[=\=]/v
  /[>\>]/v
  /[?\?]/v
  /[@\@]/v
  /[`\\`]/v
  /[~\~]/v
  /[^^\^]/v
  /[_^\^]/v
  /[\&&&\&]/v
  /[[\-]\-]/v
  /[\^]/v